package cn.hanna.springcloud;

import cn.hanna.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author smileha
 * @create 2021-10-16 14:28
 * @description
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient // 主程序类上添加注册发现，能够获取eureka上注册的信息
@RibbonClient(value = "CLOUD-PAYMENT-SERVICE",configuration = MySelfRule.class) // 规定访问具体哪个服务时，才使用此套规则
public class OrderMainApplication80 {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(OrderMainApplication80.class, args);
    }
}
